import java.io.IOException;
import java.io.FileInputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.LogManager;

public class ConfigurationExample {

  private static final LogManager logManager = LogManager.getLogManager();
  private static final Logger LOGGER = Logger.getLogger("confLogger");

  static {
    try {
      logManager.readConfiguration(new FileInputStream("./config.properties"));
    } catch (IOException ex) {
      LOGGER.log(Level.SEVERE, "Error in loading configuration", ex);
    }
  }

  public static void main(String[] args) {
    LOGGER.fine("Fine message logged");
  }

}
